<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
    <!--页面编辑器-->
    <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<!--页面顶部导航模块-->
{include file="public/top" /}

<div class="container clearfix">
	<!--页面左侧导航模块-->
	{include file="public/left" /}

    <!--/sidebar-->

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('Index/index')}">后台</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('Article/index')}">文章管理</a><span class="crumb-step">&gt;</span><span>修改</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!--action=""表单提交到当前控制器的当前方法-->

                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="{$ARTICLE.id}">
                    <table class="insert-tab" width="100%">
                        <tbody>

                            <tr>
                                <th><i class="require-red">*</i>标题</th>
                                <td>
                                    <input class="common-text-thin required" id="title" name="title"" size="50" value="{$ARTICLE.title}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>关键词</th>
                                <td>
                                    <input class="common-text-thin required" id="keywords" name="keywords" size="50" value="{$ARTICLE.keywords}" type="text">(以英文逗号分隔)
                                </td>
                            </tr>
                            <tr>
                                <th class="th_textarea"><i class="require-red">*</i>描述</th>
                                <td><textarea class="common-textarea field-desc" id="desc" name="desc" cols="30" rows="5">{$ARTICLE.desc}</textarea></td>
                            </tr>
                            <tr>
                                <th>缩略图</th>
                                <td>
                                  <input type="file" name ="thumbnail" value="" />
                                  {if condition="$ARTICLE.thumbnail eq ''"} 暂无缩略图 {else/}<img src="__PUBLIC__/{$ARTICLE.thumbnail}" height="40">  <input type="button" value="当前链接" /> "{$ARTICLE.thumbnail}"{/if}<br/>
                                  <input type="checkbox" name="delete_thumbnail" value="1" /> 取消缩略图
                                </td>
                                
                            </tr>
                            <tr>
                                <th class="th_textarea"><i class="require-red">*</i>正文</th>
                                <td><textarea class="common-textarea" id="content" name="content" cols="30" rows="20">
                                <?php
                                  echo htmlspecialchars_decode($ARTICLE['content']);
                                ?>
                                </textarea></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>栏目</th>
                                <td>
                                    {$CATEGORY_MENU}
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>发布</th>
                                <td>
                                    <input type="radio" name="status" value="0" {if condition="'0' eq $ARTICLE.status"} checked {/if}>&nbsp;&nbsp;待审核&nbsp;&nbsp;&nbsp;
                                    <input type="radio" name="status" value="1" {if condition="'1' eq $ARTICLE.status"} checked {/if}>&nbsp;&nbsp;发布
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn6 btn-primary mr10" type="submit" value="提交" >
                                    <input class="btn btn6" onclick="history.go(-1)" type="button" value="返回">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
  <script type="text/javascript">
  //实例化编辑器
  //建议使用工厂方法getEditor创建及引用编辑器实例,如果在某个闭包下引用该编辑,直接调用UE.getEditor("editor")就能够获取相关实例
  UE.getEditor("content",{initialFrameWidth:900,initialFrameHeight:400});
  </script>
</body>
</html>